package com.ruoyi.sale.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * 销售计划审核流程表记录
 *
 */
@Data
@AllArgsConstructor
@TableName(value="tb_plan_process_log")
public class PlanProcessLog
{
    /**
     * 审核记录ID
     */
    @TableId(value = "plan_log_id")
    private String planLogId;

    /**
     * 关联销售计划ID
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 审核状态（0同意，1拒绝）
     */
    @TableField(value = "plan_log_status")
    private String planLogStatus;

    /**
     * 审核人
     */
    @TableField(value = "plan_log_applicant")
    private String planLogApplicant;

    /**
     * 审核备注
     */
    @TableField(value = "plan_log_remark")
    private String planLogRemark;

    /**
     * 审核时间
     */
    @TableField(value = "plan_log_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planLogTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "PlanProcessLog{" +
                "planLogId='" + planLogId + '\'' +
                ", planId='" + planId + '\'' +
                ", planLogStatus='" + planLogStatus + '\'' +
                ", planLogApplicant='" + planLogApplicant + '\'' +
                ", planLogRemark='" + planLogRemark + '\'' +
                ", planLogTime=" + planLogTime +
                '}';
    }
}
